<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2016/9/9
 * Time: 15:35
 */
if (!defined('ACCESS')) {
    exit('Access denied.');
}

class OnService extends DBBase
{

    private static $table_name = 'online_service';
    // 查询字段
    private static $columns = array(
        'id',
        'online_service');

    public static function getTableName()
    {
        return self::$table_name;
    }


    public static function online_service()
    {

        $db = self::__instance();
        $s = $db->get(self::getTableName(), self::$columns);
        if ($s) {
            return $s;
        }
        return array();
    }

}